import request from '@/utils/request'

export function listAllFloor() {
  return request({
    url: `/dormitory/dms-dormitory-floor/listAllFloor`,
    method: 'get'
  });
}

// 查询楼层列表
export function listFloor(data) {
  return request({
    url: `/dormitory/dms-dormitory-floor/list`,
    method: 'post',
    params: data
  })
}

// 查询楼层详细.buildingId
export function getFloor(id) {
  return request({
    url: '/dormitory/dms-dormitory-floor/' + id,
    method: 'get'
  })
}

// 新增楼层
export function addFloor(data) {
  return request({
    url: '/dormitory/dms-dormitory-floor/add',
    method: 'post',
    data: data
  })
}

// 修改楼层
export function updateFloor(data) {
  return request({
    url: '/dormitory/dms-dormitory-floor/update',
    method: 'post',
    data: data
  })
}

// 删除楼层
export function delFloor(data) {
  return request({
    url: '/dormitory/dms-dormitory-floor/delete',
    method: 'post',
    data
  })
}
